﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cosoware.RayTracer.Math;

namespace cosoware.RayTracer.Geometry
{
    public struct Plane
    {
        /// <summary>
        /// The coordinates matrix.
        /// </summary>
        private readonly Matrix _matrix;

        /// <summary>
        /// Initializes a new instance of the <see cref="Plane"/> class.
        /// </summary>
        /// <param name="point1">The 1st point.</param>
        /// <param name="point2">The 2st point.</param>
        /// <param name="point3">The 3st point.</param>
        Plane(Coordinate point1, Coordinate point2, Coordinate point3)
        {
            _matrix = new Matrix(3, 4);
            point1.InitMatrixRow(ref _matrix, 0);
            point2.InitMatrixRow(ref _matrix, 1);
            point3.InitMatrixRow(ref _matrix, 2);
        }
    }
}
